import { defineConfig } from 'vite'
import {resolve} from 'path'  
import vue from '@vitejs/plugin-vue'
import WindiCSS from 'vite-plugin-windicss'
export default defineConfig({
  server:{
    proxy:{
      '/api': {
        target: 'http://ceshi13.dishait.cn/',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, ''),
      },
    }
  },
  plugins: [vue(),
    WindiCSS(),
  ],
  resolve:{
    alias:{
      '@':resolve(__dirname,'./src')
    }
  }
})

